<?php

namespace app\controllers;
use \Yii;

class TestController extends \yii\web\Controller
{
    public function actionIndex()
    {
	    $users = Yii::$app->db->createCommand('SELECT * FROM `user`')->queryAll();
		exit(json_encode($users));
    }

}
